package com.cqq.print.business.dao.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.print.business.dao.domain.PAccount;
import com.cqq.print.business.dao.mapper.PAccountMapper;


/**
 * @author generated
 * @date 2015-07-01
 */


@Repository(value="pAccountDao")
public class PAccountDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.print.business.dao.PAccountDao{

             @Autowired
             private PAccountMapper pAccountMapper;

    public int deleteByPrimaryKey(Integer id){
        return pAccountMapper.deleteByPrimaryKey(id);
    }

    public int insert(PAccount record){
        return pAccountMapper.insert(record);
    }

    public int insertSelective(PAccount record){
    	pAccountMapper.insertSelective(record);
        return record.getId();
    }

    public PAccount selectByPrimaryKey(Integer id){
        return pAccountMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PAccount record){
        return pAccountMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(PAccount record){
        return pAccountMapper.updateByPrimaryKey(record);
    }

	
	public List<PAccount> queryAccounts(Map<String, Object> map) {
		return pAccountMapper.queryAccounts(map);
	}

	
	public int queryAccountsCount(Map<String, Object> map) {
		return pAccountMapper.queryAccountsCount(map);
	}



}